#include "wiimote.h"
#include "driver.h"
#include "gui.h"
#include <fstream>

int main(int argc, char* argv[]){
    config conf;
    conf.num_wm = 2;
    conf.active_IR = 1;
    conf.aspect = WIIUSE_ASPECT_16_9;
    conf.x = 1920;
    conf.y = 1080;
    conf.motion_s = 1;
    conf.orient_thr = 0.5;
    conf.position = WIIUSE_IR_BELOW;
    conf.sense = 3;
    conf.rumble = WITH_RUMBLE;

    std::ofstream out ("configuration", std::ofstream::out);
    out.write((char*)&conf, sizeof(config));
    out.close();

    driver dv;
    std::cout << "conectado" << std::endl;

    dv.system_poll();

    return 0;
}
